#Copyright (c) Microsoft. All rights reserved.
#Licensed under the MIT license. See LICENSE file in the project root for full license information.

cmake_minimum_required(VERSION 2.8.11)
message("hello client sample")
project(hello_client)

if(NOT DEFINED WA_SDK_DIR)
  set (WA_SDK_DIR  ${CMAKE_CURRENT_LIST_DIR}/../../../out/host/wa-iot)
endif()
include(${WA_SDK_DIR}/wa-sdk.cmake)


include_directories(
    ${CMAKE_CURRENT_SOURCE_DIR}/inc
)

set(hello_world_client_sources
    ${CMAKE_CURRENT_SOURCE_DIR}/src/hello_world_client.c
    ${CMAKE_CURRENT_SOURCE_DIR}/src/response_callback.c
    ${CMAKE_CURRENT_SOURCE_DIR}/src/callback_in_thread.c
)

set(hello_world_client_headers
    ${CMAKE_CURRENT_SOURCE_DIR}/inc/hello_world.h
)

#this builds the hello_world dynamic library
add_library(hello_world_client MODULE ${hello_world_client_sources} ${hello_world_client_headers})

linkWA_SDK(hello_world_client)

# target_link_libraries(hello_world_client ${WA_SDK_LINK_DEPS})

